const DIC = {
  vaild: [{
    label: '否',
    value: '0'
  }, {
    label: '是',
    value: '1'
  }]
}


export const tableOption = {
  "border": false,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  'selection': true,
  "searchMenuSpan": 6,
  "addBtn": false,
  "refreshBtn": false,
  "columnBtn": false,
  "searchShowBtn": false,
  "searchIcon": false,
  "searchShow": false,
  "column": [
    {
      "type": "table",
      "label": "设备",
      "prop": "deviceId",
      "span": 12,
      "formslot": true,
      'slot': true,
      rules: [{
        required: false,
        message: '请选择设备',
        trigger: 'blur'
      }]
    }, {
      label: '事件类型',
      prop: 'eventType',
      type: 'select',
      dicUrl: '/admin/dict/type/event_type',
      search: true,
      rules: [{
        required: true,
        message: '请选择事件类型',
        trigger: 'change'
      }]
    }, {
      "type": "input",
      "label": "开销",
      "prop": "expenses",
      "span": 12,
      rules: [{
        required: true,
        message: '请输入开销',
        trigger: 'blur'
      }]
    },

    {
      label: '价值变动',
      prop: 'changeStatus',
      width: 80,
      type: 'select',
      dicData: DIC.vaild,
      rules: [{
        required: true,
        message: '请选择价值变动',
        trigger: 'change'
      }]
    },

    {
      "type": "input",
      "label": "变动值",
      "prop": "changeValue",
      "span": 12,
      rules: [{
        required: true,
        message: '请输入变动值',
        trigger: 'blur'
      }]
    }, {
      "type": "input",
      "label": "资产净值",
      "prop": "originalValue",
      "span": 12,
      addDisplay: false,
      editDisplay: false
    }, {
      row: true,
      minRows: 2,
      "type": "textarea",
      "label": "备注",
      "prop": "remark",
      "span": 12,
      hide: true
    },]
}
